﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using VioletDevelopmentLaboratory.Net.Web;

public partial class vboard_membership_list : VioletDevelopmentLaboratory.Net.Web.PageBase
{
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			MemberListDataListBind();
		}
	}


	private void MemberListDataListBind()
	{
		int pageSize = 20;
		int pageIndex, totalRecords;

		try
		{
			pageIndex = Convert.ToInt32(Request.QueryString["pi"]);
		}
		catch
		{
			pageIndex = 0;
		}

		MemberListRepeater.DataSource = Membership.GetAllUsers(pageIndex, pageSize, out totalRecords);
		MemberListRepeater.DataBind();

		MemberListPagerButton.PageSize = pageSize;
		MemberListPagerButton.ButtonCount = 10;
		MemberListPagerButton.SelectCount = totalRecords;
	}
}
